home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_11
/
gilhool2
/
inifile.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-10
|
700b
|
31 lines
#include "pulse.h"
/*
Routine: GetIni, PutIni
Called By: various
Usage: These routines store and fetch initialization info
*/
void GetIni()
{
nXPos = GetProfileInt("Pulse", "XPos", 100);
nYPos = GetProfileInt("Pulse", "YPos", 100);
Mode = GetProfileInt("Pulse", "Mode", 100);
}
void PutIni()
{
char szBuffer[20];
/*
Screen Position
*/
wsprintf(szBuffer, "%d", nXPos);
WriteProfileString("Pulse", "XPos", szBuffer);
wsprintf(szBuffer, "%d", nYPos);
WriteProfileString("Pulse", "YPos", szBuffer);
/*
last active display option
*/
wsprintf(szBuffer, "%d", Mode);
WriteProfileString("Pulse", "Mode", szBuffer);
}